package com.mybed.crm.result;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mybed.crm.common.enums.HttpCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ImgResult extends ResultP implements Serializable {

    private String img; //总记录数
    private String  uuid; //当前页数据集合
    public void insertData(String img,String uuid){
        this.img=img;
        this.uuid=uuid;
        setCode(HttpCodeEnum.SUCCESS.getCode());
        setMsg(HttpCodeEnum.SUCCESS.getErrorMessage());
    }


}
